package day4;

public class Demo {
    public static void main(String[] args) {
        int sum1=0;
        int sum2=0;
        int sum3=0;
        for (int i=0;i<=100;i++){
            if (i % 2 == 0) {
                sum2+=i;
            }else {
                sum1+=i;
            }
            sum3+=i;
        }
        System.out.println(sum1);
        System.out.println(sum2);
        System.out.println(sum3);
    }

}
